package com.example.lenjor.sprite.util;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by Administrator on 2017/6/30 0030.
 */
public class ToastUtil {
    private static Toast toast;

    public static void toast(Context ctx,String text){
        if(toast == null){
            toast = Toast.makeText(ctx,"",0);
        }
        toast.setText(text);
        toast.show();
    }
}
